package com.t174.car.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class CarPurchase {

  private int id;
  private String brand;
  private String model;
  private String level;
  private String color;
  private BigDecimal price;
  private int count;
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern="yyyy-MM-dd")
  private Date date;
  private int supplier;
  private int staff;
  private String note;
  private UserInfo userInfo;
  private Supplier supplier2;
  private BigDecimal minPrice;
  private BigDecimal maxPrice;
//  @JsonFormat(pattern = "yyyy-MM-dd")
//  @DateTimeFormat(pattern="yyyy-MM-dd")
  private String minDate;
//  @JsonFormat(pattern = "yyyy-MM-dd")
//  @DateTimeFormat(pattern="yyyy-MM-dd")
  private String maxDate;

  public String getMinDate() {
    return minDate;
  }

  public void setMinDate(String minDate) {
    this.minDate = minDate;
  }

  public String getMaxDate() {
    return maxDate;
  }

  public void setMaxDate(String maxDate) {
    this.maxDate = maxDate;
  }

  public BigDecimal getMinPrice() {
    return minPrice;
  }

  public void setMinPrice(BigDecimal minPrice) {
    this.minPrice = minPrice;
  }

  public BigDecimal getMaxPrice() {
    return maxPrice;
  }

  public void setMaxPrice(BigDecimal maxPrice) {
    this.maxPrice = maxPrice;
  }

  public UserInfo getUserInfo() {
    return userInfo;
  }

  public void setUserInfo(UserInfo userInfo) {
    this.userInfo = userInfo;
  }

  public Supplier getSupplier2() {
    return supplier2;
  }

  public void setSupplier2(Supplier supplier2) {
    this.supplier2 = supplier2;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }


  public String getBrand() {
    return brand;
  }

  public void setBrand(String brand) {
    this.brand = brand;
  }


  public String getModel() {
    return model;
  }

  public void setModel(String model) {
    this.model = model;
  }


  public String getLevel() {
    return level;
  }

  public void setLevel(String level) {
    this.level = level;
  }


  public String getColor() {
    return color;
  }

  public void setColor(String color) {
    this.color = color;
  }


  public BigDecimal getPrice() {
    return price;
  }

  public void setPrice(BigDecimal price) {
    this.price = price;
  }


  public int getCount() {
    return count;
  }

  public void setCount(int count) {
    this.count = count;
  }


  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }


  public int getSupplier() {
    return supplier;
  }

  public void setSupplier(int supplier) {
    this.supplier = supplier;
  }


  public int getStaff() {
    return staff;
  }

  public void setStaff(int staff) {
    this.staff = staff;
  }


  public String getNote() {
    return note;
  }

  public void setNote(String note) {
    this.note = note;
  }

}
